<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="checkuser.jsp" %>
<%
String url="";
String urlType="";
String viewType="data";
if(request.getParameter("url")!=null){
	url=request.getParameter("url");
}
if(url.length()>0){
	urlType=url.substring(url.lastIndexOf("."),url.length());
	if(".swf".equals(urlType)){
		viewType="data";
	}else if(".flv".equals(urlType)){
		viewType="video";
	}else{
		viewType="";
	}
	if(viewType.length()>0){
		response.sendRedirect(viewType+"view.jsp?url="+url);
	}
}
%>